package com.example.springbootactiviemq.sender;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jms.core.JmsTemplate;
import org.springframework.stereotype.Service;

/**
 * @author ljw
 * @description
 * @date 2022/9/9 11:50
 */
@Service
public class Sender {

    @Autowired
    private JmsTemplate jmsTemplate;

    public void sendMsg() {
        jmsTemplate.send("my-destination", new Msg());
    }
}
